package com.example.demo;

import com.sun.deploy.security.ruleset.RuleSetParser;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;


@SpringBootApplication
public class DemoApplication {

	public static void main(String[] args) throws ParseException {
//		SimpleDateFormat simpleFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm");
//		Date fromDate3 = simpleFormat.parse("2018-03-01 12:00");
//		Date toDate3 = simpleFormat.parse("2018-03-12 12:00");
//		long from3 = fromDate3.getTime();
//		long to3 = toDate3.getTime();
//		int minutes = (int) ((to3 - from3) / (1000 * 60));
//		System.out.println("两个时间之间的分钟差为：" + minutes);
		SpringApplication.run(DemoApplication.class, args);


		System.out.printf("hello world   11111111");
	}

}
